package com.bosssoft.boss_exam_core.util.common;

import java.util.List;

/***
 * @Author lys(cherish)
 * @Phone 17720799636
 * @Date  2019/3/19
 * @Description 随机操作工具类
 * @since JDK 1.8
 **/
public class RandomUtil {
    /***
     * @Author lys(cherish)
     * @Phone 17720799636
     * @Date  2019/3/19
     * @Description 获取字符串列表中的随机字符串
     * @Param [strList]
     * @Return java.lang.String
     * @Exception //TODO
     * @since JDK 1.8
     **/
    public static String RandomFile(List<String> strList){
        int randomIndex = (int) (Math.random()*strList.size());
        return strList.get(randomIndex);
    }
}
